﻿using System;
using System.Linq;
using vtpsms.Classes;

namespace vtpsms.Customers
{
    public partial class Group : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindGrid();
            }
        }

        private void BindGrid()
        {
            var lstGroup = UnitOfWork.GroupRepository.Get().ToList();
            grvGroup.DataSource = lstGroup;
            grvGroup.DataBind();
        }
    }
}